package com.ms.p2p.provider;


import com.ms.p2p.bean.PageBean;
import com.ms.p2p.entity.loan.LoanDueIn;

import java.util.List;
import java.util.Map;


public interface LoanDueInProvider {


	/**
	 * 根据投标ID和对应期数查出待收数据
	 *
	 * @param tender_id
	 * @param order
	 * @return
	 */
	public LoanDueIn findByTenderIdAndOrder(int tender_id, int order) ;

	/**
	 * 根据投标标di id和期数获得
	 *
	 * @param loanid
	 * @param stay_periods
	 * @return
	 */
	public List<LoanDueIn> findByBorrowIdAndOrder(int loanid, int stay_periods);

	/**
	 * 增
	 * 
	 * @param loanDueIn
	 * @return
	 */
	public int insert(LoanDueIn loanDueIn);


	public int update(LoanDueIn map);

	public  List<Map<String,Object>> findPager(Integer id,String billStatus, PageBean page);

	public int findCount(Integer id,String billStatus);


	public String getIncome(Integer id, Integer status);


	public int getcount(Integer id, int i);
}



